Computer system integrating different data types into a single environment

ABSTRACT

A system for viewing and manipulating information of various data types within a single document in an integrated computer system environment is disclosed. Each data type is maintained within a dataset. Datasets comprise logical information of a common data type along with the functions or processing logic to view and manipulate that data type. The logical types of information managed by datasets in the preferred embodiment include graphical objects, blocks of text, spreadsheet cells, and database records. Datasets also manage frames. Frames provide a means by which datasets are viewed and manipulated. Each dataset is responsible for managing the display of information inside one of its frames. Significantly, the present invention provides a logical independence between the information contained in a dataset and the manner in which the information is viewed and manipulated (i.e. frames). This independence provides a significant improvement in the ability to manipulate various types of information. Any type and number of datasets can be combined together into a single document and saved in a file system as a document file.

RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.08/673,965, now U.S. Pat. No. 6,154,756, filed Jul. 1, 1996, which is afile-wrapper continuation of U.S. patent application Ser. No. 08/408,114filed Mar. 21, 1995, now abandoned, which is a file-wrapper continuationof U.S. patent application Ser. No. 07/914,193 filed Jul. 15, 1992, nowabandoned.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to the field of manipulating informationin a computer system. Specifically, the present invention relates to themanipulation of different types of data such as alphanumeric text,graphics, or other forms of information visibly displayed within asingle document on an output device of a computer system.

2. Prior Art

Computer systems are commonly used for viewing and manipulatingdifferent types of information. A few of the more well-known types ofinformation include alphanumeric text, graphics, and other forms ofinformation. In order to manipulate these different types ofinformation, various computer programs called application programs havebeen developed and made available in the prior art. Such applicationprograms include word processing programs, spreadsheet programs, database programs, input/output or communications programs, drawing orgraphics generation programs, and other application programs for viewingand manipulating a particular defined data type.

Documents created and manipulated using these application programstypically have a data type associated with them. For example, a textdocument may have a text or word processing data type associated withit. In addition, the information associated with a typical text documentis stored in a particular format compatible with a corresponding wordprocessing application program. Similarly, different data types and dataformats corresponding to other application programs are associated withdocuments created or manipulated by those application programs.

The prior art method of associating data types with documents gives riseto many problems. Documents of one data type are typically incompatiblewith application programs designed to manipulate documents of adifferent data type. For example, a word processing document typicallycannot be manipulated by a graphics application program. Similarly,spreadsheet documents are incompatible with database applicationprograms. Thus, documents in the prior art tend to be compartmentalizedwithin the framework of their associated data type. This limitationseverely restricts the opportunity for the transfer of informationbetween documents of different types.

Some application programs provide mechanisms for importing and exportinginformation from one application to another. Similarly, a well-knowntechnique of cutting and pasting information from one applicationprogram into a temporary storage area and subsequently into a secondapplication program is well-known in the art. These mechanisms provide alimited means for transferring information between two applicationprograms; however, some level of manipulation or formatting capabilityis lost in the transferred information. For example, some wordprocessing programs allow graphics images to be inserted into the textof a word processing document using a cut/paste or import functionmechanism. Although the graphics image coexists with the text in theword processing document, some word processors do not allow the graphicsimage itself to be manipulated in the manner provided by the graphicsapplication program in which the graphics image may have been created.Specifically, lines, polygons, or other graphics shapes can no longer berepositioned or resized once transferred to the word processingdocument. Similarly, in some word processors, a block of texttransferred from a word processing document into a spreadsheet ordatabase application program for example, loses its text formattingcapabilities provided by the word processing application program inwhich the block of text was originally created. Thus, prior art systemshave only a limited capability of integrating various types ofinformation into a single environment.

Some prior art programs display information in rectangular portions of adisplay screen called panes. Other programs support multiple views ofvarious information in pre-defined locations of the display screen.These programs, however, explicitly manage different display screenlocations in which information is displayed. No support is provided fordisplaying different data types nested in the same display location.These prior art systems cannot display any arbitrary data type in anyarbitrary display screen location. Furthermore, other programs do notallow multiple views with different view scales in each view.

Other prior art systems include a software product called Ragtime™.Ragtime is a frame-based program in which users draw out frames and workwithin them. However, Ragtime users must explicitly create all theframes they use. Frames generally map to a specific screen location.Further, Ragtime provides no document structure incorporating variousdata types. Finally, Ragtime has no database capabilities, and veryprimitive graphics capabilities. It primarily manipulates text andspreadsheets.

Microsoft Works™, developed by Microsoft™, Inc. of Redmond, Wash., is aform of an integrated application program. It provides word processing,spreadsheet, database, graphics, and communications capabilities.Microsoft Works typifies what is commonly called a modular structure ofintegrated software. This structure comprises four or more separateprograms in one; the user may create documents of a given type, butthere is little or no interaction between the program modules. In boththe word processing and spreadsheet modules, graphics objects can bedrawn, but there is no separate graphics document type. Drawing in wordprocessing or spreadsheet documents in the prior art is ‘flat.’ Thereare no frame objects, so there is only one level of structure. The textobjects use built-in text editing facilities and do not provide the fullword processing capabilities as would be provided by a true text frame.The graphics functionality is limited; it is really a tacked on featureand not a true environment.

What is needed is a totally integrated functional environment. Therestill may be documents of specific types, but frames may be added to anyof them as graphic objects to create an arbitrarily-structured compounddocument. These frame objects may be manipulated like any graphicsobject; they may also be activated in order to work within a nestedenvironment.

Thus, a better means for viewing and manipulating information ofdifferent data types is needed.

SUMMARY OF THE INVENTION

The present invention provides a means for viewing and manipulatingdifferent data types within a single document in an integrated computersystem environment., Each data type is maintained within a dataset.Datasets comprise logical information of a common data type along withthe functions or processing logic to view and manipulate that data type.The logical types of information managed by datasets in the preferredembodiment include graphical objects, blocks of text, spreadsheet cells,and database records. Datasets also manage frames. Frames provide ameans by which datasets are viewed and manipulated. Each dataset isresponsible for managing the display of information inside one of itsframes. Of particular significance in the present invention is thelogical independence between the information contained in a dataset andthe manner in which the information is viewed and manipulated (i.e.frames). This independence provides a significant improvement in theability to manipulate various types of information. Any type and numberof datasets can be combined together into a single document and saved ina file system as a document file.

The present invention builds upon the dataset and frame structure byallowing frames to be nested within datasets. In this manner, datasetscan reference other (nested) frames onto other datasets. These nestedframes provide a hierarchical layering of information within a singledocument. Thus, for example, a graphics document may contain a nestedframe onto a text dataset or spreadsheet dataset. Similarly, a textdocument may contain a nested frame onto a graphics dataset, aspreadsheet dataset, or any arbitrary type of dataset, including anothertext dataset. Any type of dataset can include a nested frame onto anyother type (or same type) of dataset.

The present invention includes a window structure for displaying framesof one or more datasets. Views within a window are of two types: frameviews and page views. In a frame view, a window is divided intosub-regions called panes. A set of frames (denoted a partition) of adataset is displayable in each pane. In a page view, a document isdivided into pages. Frames are drawn into each page through a pagedataset that can be used to combine other information into a page. Wordprocessing (text) documents only have page views in the preferredembodiment. Graphics documents have both frame views and page views.Database documents have four different kinds of views: browse paged(page view), browse non-paged (frame view), find (frame view), andlayout edit (page view).

The present invention also provides a context structure for improvingthe performance in the display of frames. This context structureincludes a context list that retains the display screen location andscale of each frame of a particular dataset in a given window. Thecontext list is used to update the display screen when a user action orother system event causes the display image to change.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer system used in the preferredembodiment.

FIG. 2 is a block diagram of a graphics dataset.

FIG. 3 is a block diagram of the content of the graphics dataset.

FIG. 4 illustrates the content of the object data in a graphics dataset.

FIG. 5 illustrates the contents of the partition data in a graphicsdataset.

FIG. 6 illustrates the contents of the frame data in a graphics dataset.

FIG. 7 is a block diagram of a text dataset.

FIG. 8 is a block diagram of the content of a text dataset.

FIG. 9 illustrates the content of the text block information in a textdataset.

FIG. 10 illustrates the content of the paragraph information in a textdataset.

FIG. 11 illustrates the content of the style information in a textdataset.

FIG. 12 illustrates the content of the text item information in a textdataset.

FIG. 13 illustrates the content of the status information in a textdataset.

FIG. 14 illustrates the content of the frame information in a textdataset.

FIG. 15 is a block diagram of a spreadsheet dataset.

FIG. 16 is a block diagram of the content of a spreadsheet dataset.

FIG. 17 illustrates the content of the cell information in a spreadsheetdataset.

FIG. 18 illustrates the content of the dependency information in aspreadsheet dataset.

FIG. 19 illustrates the content of the partition information in aspreadsheet dataset.

FIG. 20 illustrates the content of the frame information in aspreadsheet dataset.

FIG. 21 is a block diagram of a database dataset.

FIG. 22 is a block diagram of the content of a database dataset.

FIG. 23 illustrates the content of the record information in a databasedataset.

FIG. 24 illustrates the content of the field information in a databasedataset.

FIG. 25 illustrates the content of the layout information in a databasedataset.

FIG. 26 illustrates the content of the partition information in adatabase dataset.

FIG. 27 illustrates the content of the frame information in a databasedataset.

FIG. 28 illustrates the content of the page view information in adatabase dataset.

FIG. 29 illustrates the content of the frame view information in adatabase dataset.

FIG. 30 illustrates the window structure of the present invention.

FIG. 31 illustrates the content of the window information.

FIG. 32 illustrates the content of the dataset information in a window.

FIG. 33 illustrates the content of the view information in a window.

FIG. 34 illustrates the content of the frame view information in awindow.

FIG. 35 illustrates the content of the pane information in a window.

FIG. 36 illustrates the content of the page view information in awindow.

FIG. 37 illustrates the content of the page dataset information in awindow.

FIG. 38 illustrates the content of the form dataset information in awindow.

FIG. 39 illustrates the content of the context information in a window.

FIG. 40 illustrates the content of the document structure of the presentinvention.

FIG. 41 illustrates the content of the document information in adocument.

FIGS. 42-57 are flowcharts illustrating the processing logic of thepresent invention.

FIGS. 58-64 are examples of the present invention as used in a computersystem.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

The present invention provides a means and a method for viewing andmanipulating information of various data types within a single computersystem environment. In the following description, numerous specificdetails are set forth in order to provide a thorough understanding ofthe invention. However, it will be apparent to one of ordinary skill inthe art that these specific details need not be used to practice thepresent invention. In other instances, well-known structures, circuits,and interfaces have not been shown in detail in order not tounnecessarily obscure the present invention.

Referring to FIG. 1, the computer system 100 upon which the preferredembodiment of the present invention is implemented is illustrated.Computer system 100 comprises a bus or other communication means forcommunicating information, and a processing means (CPU) 102 coupled withthe bus 101 for processing information. Computer system 100 furthercomprises a random access memory (RAM) or other dynamic storage device104 (referred to as main memory) coupled to the bus 101 for storinginformation and instructions to be executed by processor 102. Mainmemory 104 also may be used for storing temporary variables or otherintermediate information during execution of instructions by processor102. Computer system 100 also comprises a read only memory (ROM) and/orother static storage device 106 coupled to bus 101 for storing staticinformation and instructions for processor 102, and a data storagedevice 107 such as a magnetic disk or optical disk and its correspondingdisk drive. Data storage device 107 is coupled to bus 101 for storinginformation and instructions. Computer system 100 may further be coupledto a display device 121, such as a cathode ray tube (CRT) coupled to bus101 for displaying information to a computer user. An alphanumeric inputdevice 122, including alphanumeric and other keys, may also be coupledto bus 101 for communicating information and command selections toprocessor 102. An additional user input device is cursor control device123, which may comprise a mouse, a track ball, or cursor direction keyson the input device 122. Cursor control device 123 is coupled to bus 101for communicating direction information and command selections toprocessor 102, and for controlling cursor movement on display device121. Another device which may be coupled to bus 101 is a hard copydevice 124 which may be used for printing instructions, data, or otherinformation on a medium such as a paper, film, or similar types ofhardcopy media. It will be apparent to those skilled in the art that aparticular computer system may be configured with more or less of thedevices specified above.

In the preferred embodiment, computer system 100 is one of theMacintosh® family of personal computers manufactured by Apple® Computer,Inc. of Cupertino, Calif. (Apple and Macintosh are registered trademarksof Apple Computer, Inc.). Processor 102 is one of the 68000 families ofmicroprocessors, such as the 68000, 68020, or 68030 manufactured byMotorola, Inc. of Schaumburg, Ill. Computer system 100 operates with theprocessing logic of the present invention as described below.

The most fundamental concept in the present invention is a dataset, ordset for short. Datasets are software-implemented control mechanismsthat manage logical sets of information, such as items of text,graphical objects, database records, etc. A dataset is roughly analogousto the content of a document from a conventional application program;however, documents in the present invention can contain many differentdatasets. In fact, datasets are the basic building blocks of documentsin the present invention.

There are four kinds of datasets in the preferred embodiment: 1)Graphics (or object) datasets manage collections of graphical objects.These objects can be ovals, rectangles, polygons, etc.; they can also beframe objects, which are essentially views onto other datasets. Framesand frame objects will be discussed more fully below. 2) Text datasetsmanage collections of alphanumeric text with styles, paragraphs, rulers,etc. Styles, paragraphs, and rulers are well-known word processingconcepts. A text dataset corresponds to all the text in a wordprocessing document, or a story in a document with multiple items oftext. 3) Spreadsheet datasets manage cells containing numbers, text, andformulas; they also maintain dependencies between these cells, cellstyles, column widths, etc. 4) Database datasets primarily manage listsof records. They also contain information on field types and layoutconfigurations.

Referring now to FIG. 2, a block diagram illustrates the data structureof a graphics dataset 210 in the present invention. A graphics datasetcomprises a set of graphics objects 212, a set of partitions 214, and aset of frames 216. Graphics objects 212 include displayable shapes suchas lines, polygons, conics, arcs, and other graphics objects such astext objects or bitmap objects. Objects 212 may also be frame objectsused to view other datasets. Text objects are a special case of frameobjects. The object data structures are described in detail inconnection with FIG. 4.

Partitions 214 are groupings of frames 216. Frames are the mechanism bywhich datasets are viewed and manipulated. Each dataset is responsiblefor managing its own frames. A dataset can reference the information ina different dataset using a frame. For example, the result of a useraction can cause the present invention to draw a frame in a graphicsdataset. In response, the graphics dataset draws all objects of thegraphics dataset that are visible in the specified frame. The mostimportant aspect of frames is that they insulate dataset-specificbehavior from the particular environments in which the datasets mustoperate. In particular, datasets are not responsible for managingfunctions such as window scrolling, window sub-regions (panes), pagingor other environment-specific functions. These functions are handleduniformly, independent of document or dataset type, at a higherfunctional level. The use of windows and panes in general is known inthe art.

As will become apparent in the following detailed description, the mainfunctions performed by a dataset using frames include drawing frames andbuilding contexts. Frames are employed by each of the four types ofdatasets. In each case, frames provide a means for viewing andmanipulating dataset information. Because some of the specificcharacteristics of frames differ for the various types of datasets,frames will be described in connection with each type of dataset.

One common characteristic of frames, however is that frames can belinked. Thus, frames can be organized into a sequential set of viewsonto a dataset. In a linked configuration, frames view adjacent portionsof a dataset.

Referring now to FIG. 3, the information maintained by a graphic dataset300 is illustrated. Graphic dataset 300 comprises object information310, partition information 312, an identity of the current partition314, and an identity of the active partition 316. Object information 310comprises information for representing objects 212 of graphics dataset210.

Referring to FIG. 4, the information comprising object information 310is illustrated. Graphic objects of a graphics dataset in the presentinvention are represented using object information 310 illustrated inFIG. 4. Object information includes an object type 410. Object types inthe preferred embodiment include line objects, rectangle objects,rounded rectangle objects, ovals, arcs, polygons, pictures, charts,database field objects, and frame objects. With the exception of frameobjects, the representation of the other graphic object types isgenerally well-known to those of ordinary skill in the art. Therepresentation of frame objects will be described below.

Pen size 412 defines the width of the lines used to draw the specifiedobject. Color 414 defines the color in which the specified graphicobject is displayed. Pattern 416 defines the shading pattern used tofill the interior regions of the specified graphic object. Color 414 andpattern 416 describe the interior of objects. Pen size 412 and pattern416 describe the borders of objects. Circle data 418 provides a meansfor representing circular objects of a specified radius or the circularportions of objects such as the rounded corners of rounded rectangles.Polygon data 420 is used for representing polygon objects using aspecification of the location of vertices of the polygon. Picture data422 is used for representing an object as a bitmap picture or otherimage description protocol such as QuickDraw. A bitmap is atwo-dimensional digital representation of a visual image or picturedisplayable on a display screen. Picture data 422 is used to representthe size and content of a picture bitmap. Chart data 428 is used torepresent a chart object. Chart objects represent graphically datacontained in a spreadsheet dataset.

Arc data 426 is used to represent arc objects as defined by a startingpoint and an arc angle. Rotation information 428 contains a rotatedbitmap image for pictures and frames. Database field data 430 is used tolink a graphic object to a specified database field. Field objects areonly used in database layouts. They indicate the positions fields willbe displayed in when editing the database.

Frame data 432 is used to represent a frame object. Frame objectsprovide a means by which a specified graphic object may be used to viewor manipulate information contained in a different dataset. Thedifferent dataset may be another graphic dataset, a text dataset, aspreadsheet dataset, or a database dataset. Frame objects are similar torectangle graphic objects in that frame objects have rectangular bounds,a screen position, and pen and fill attributes. However, the interior offrame objects are views into a different dataset. Thus, if a frame of agraphic dataset is drawn in which a frame object is present, the graphicdataset draws a background and border of the frame object and then makesa call to the dataset referenced by the frame object in order to drawthe contents of the frame object. In order to perform this datasetnesting operation using frame objects, frame data 432 of objectinformation 310 is used. Frame data 432 comprises the identity of thenested dataset which the frame object is viewing, the partition numberof that dataset, and the frame number of the specified partition of thenested dataset. In this manner, datasets can reference frames onto otherdatasets in a nested and hierarchical fashion. Frame objects which aremembers of the set of objects 212 of graphics dataset 210 should not beconfused with frames 216 which are defined for graphics dataset 210.Frames 216 provide a means for viewing and manipulating informationwithin graphics dataset 210. However, frame objects of objects 212provide a means for viewing and manipulating information containedwithin other datasets.

Referring now to FIG. 5, the partition information 312 of graphicsdataset 210 is illustrated. Graphics dataset 210 includes a plurality ofpartitions 214. Information for each partition is maintained withinpartition information 312. Information for a particular partition isaccessed using a partition identification or partition index 508.Partitions in the preferred embodiment are groups or sets of frames.Partitions are used to cluster groups of frames that access a givendataset in different ways. For example, a database dataset may havevarious layouts for viewing different subsets of the informationcontained within a database. Partitions may be used to represent each ofthe various layouts provided by a database dataset. In another exampleof partitioning, a graphics dataset having two partitions may be used toview graphic objects in two different scales. Each partition of agraphic dataset may be set up to view a specified area of the graphicsspace. Partitions of a dataset provide this flexibility by includingframe information 510 within the partition information structure 312.Frame information 510 includes information for specifying a plurality offrames within a particular partition. Frame information 510 is describedin detail in connection with FIG. 6.

Referring now to FIG. 6, frame information 510 within a partition isdescribed. Frame information 510 is duplicated for each of the frames ofa specified partition. A particular frame within a partition is accessedusing frame index 608. Frame information 510 comprises a frame origin610 which defines a point in the graphic dataset coordinate systemcorresponding to the upper left comer of the frame. Frame information510 also includes frame size 612 which defines the width and height ofthe frame. In a normalized scale, topology 614 provides a means fordefining the spatial relationship of this frame with reference to otherframes in the partition. In this manner, frames of a partition may bearranged in a particular order. In the preferred embodiment, frames of apartition are arranged in a two-dimensional tiled arrangement referencedfrom the upper left hand comer of the dataset and extending first fromleft to right across the dataset and then from top to bottom down thedataset. View dataset information 618 is used to identify other datasetsviewing the dataset of which this frame is a member. In this manner,frames of a given dataset are conveniently cross-linked with otherdatasets viewing or manipulating a given dataset.

Referring again to FIG. 3, object information 310 and partitioninformation 312 have been described for graphics dataset 210. Currentpartition 314 defines the partition being operated upon by the dataset.Active partition 316 defines the partition that last received a usermouse button activation.

Referring now to FIG. 7, a block diagram of the content of a textdataset 710 is illustrated. Text dataset 710 comprises a group of textblocks 712 and a set of frames 714 for viewing and manipulating textinformation within text blocks 712. Text datasets manage collections oftext with styles, paragraphs, rulers, and other well known wordprocessing concepts. The actual text within a given text dataset 710resides within blocks of text 712 which are maintained by text dataset710. In addition, text dataset 710 provides a plurality of frames 714which are used for viewing and manipulating text within text dataset710. Unlike other types of datasets in the preferred embodiment, textdatasets do not include partitions. Instead, text datasets manage framesindependently.

Referring now to FIG. 8, the information 800 within a text dataset isillustrated. Text dataset information 800 comprises text blockinformation 810 which is used for managing the plurality of text blocks712.

Referring now to FIG. 9, the content of text block information 810 isillustrated. Text block information 810 comprises information related toa plurality of text blocks within text dataset 710. A text block is ablock of memory, usually a fixed length block memory, in which stringsof alpha numeric and control characters are stored. Using informationwithin text block information 810, the text blocks are chained togetherto form a contiguous and coherent block of text. Chaining text blocks iswell known in the art. Each individual text block is referenced using atext block handle 908. The text block handle 908 is assigned when aparticular text block is allocated using techniques well-known in theart. For each text block, a block start position 910 is maintained.Block start position 910 defines the position of a text block inrelation to other text blocks of the text dataset. Block size 912defines the number of characters within the text block. Text handle 914is a pointer to the actual text data contents of the text block.

Referring again to FIG. 8, text dataset information 800 includes blockcount 812. Block count 812 defines the number of text data blocks withintext dataset 710. Character count 814 defines the total number ofcharacters cumulative of all text blocks 712 within text dataset 710.Text insertion point 816 is used by text dataset 710 to manage aposition within the text dataset at which insertion of new textualinformation will occur when initiated by a user of text dataset 710.Text selection points 818 are used to define two points within the textdataset between which a selected region of text is defined. Usingtechniques well-known in the art, a selected text region may be used forcut, copy, or paste operations.

Referring now to FIG. 10, the content of paragraph information 820 isillustrated in detail. Because the text within a text dataset may begrouped into paragraphs, paragraph information 820 is used to define thelocation and format of paragraphs. Paragraph information 20 includesstart position 1010. Start position 1010 defines the location of eachparagraph within text dataset 710. Ruler number 1012 is used to define aformat specification for each paragraph. Individual paragraphs may bereferenced within a text dataset using a paragraph handle 1008. There isone paragraph handle per text dataset. Each paragraph has an entry inthis handle.

Referring again to FIG. 8, text dataset information 800 includes styleinformation 822. Referring now to FIG. 11, the content of styleinformation 822 is defined in detail. Regions within text dataset 710and a corresponding style may be defined using style information 822.Style information provides a means for formatting a region of datawithin a text dataset in a particular way. Style information 822comprises a start position 1110 which defines a character positionwithin text dataset 710 at which the specified style is applied. Font1112 defines the font corresponding to the specified style. Size 1116defines the character size corresponding to a style. Color 1118 definesthe color in which the corresponding text is displayed. A particularstyle within a text dataset is referenced using style handle 1118. Stylehandle 1118 is assigned when a particular style is created usingtechniques well-known in the art.

Referring again to FIG. 8, text dataset information 800 includes textitem information 824. Various items can be inserted into the text. Theseitems are managed using text item information 824. These items includefootnotes and graphic datasets. A footnote is a text dataset. A graphicdataset may contain a picture.

Referring again to FIG. 8, text dataset information 800 also includesstatus information 826. Referring now to FIG. 13, the content of statusinformation 826 is illustrated. Status information 826 comprisesoverflow field 1318 which is true if text in a text frame may overflow aframe border. Text select field 1320 is true if there is an activeselection range. A selection range is active if text selection points818 have been defined. Picture select 1322 is true if there is a pictureselected.

Caret field 1324 defines whether or not a caret character is drawn onthe display screen. It will be apparent to those skilled in the art thatother status information for a text dataset may be maintained withinstatus information 826.

Referring again to FIG. 8, text dataset information 800 also comprisesframe information 828. Referring now to FIG. 14, frame information 828is illustrated. Frame information 828 provides a means for maintaininginformation for managing a plurality of frames 714 within text dataset710. Each individual frame is referenced using a frame index 1408. Textframes provide a means for viewing and manipulating text informationwithin a text dataset. For example, a text frame may be used to view ormanipulate a page of text, a column of text, a header, a footer, afootnote, a database field, or other text object. In each case, users ofa text dataset may access a text frame in a uniform and consistentmanner regardless of the specific characteristics of the text that theframe is viewing. In order to implement this flexibility, frameinformation 828 comprises a frame start field 1410. Frame start field1410 defines a character position within a text dataset 710 at which aparticular frame begins. From this specified start position, a width1412 and height 1414 define a two-dimensional region for the framewithin text dataset 710. Lines field 1416 and line count field 1418 areused to define the text lines that are contained within the specifiedframe.

Referring again to FIG. 8, the content of text dataset information 800is defined as described above. In addition, text datasets provide ameans for referencing other datasets using special characters orfootnotes embedded within text blocks 712. These special characters areactually frames onto object datasets or text datasets (footnotes). In amanner similar to frame objects in a graphics datasets, embedded framecharacters in a text block of a text dataset provide a means by whichinformation from another dataset may be embedded within a text block.

Referring now to FIG. 15, a block diagram of the data structuresassociated with a spreadsheet dataset 1510 is illustrated. Spreadsheetdatasets manage cells containing numbers, text and formulas. Spreadsheetdatasets also manage the dependencies between cells. Spreadsheet dataset1510 therefore includes a plurality of cells 1512 each having a locationwithin a two dimensional spreadsheet array. This spreadsheet array istypically stored in memory of the computer system in which the presentinvention operates. Spreadsheet dataset 1510 also includes a pluralityof partitions 1514. In a manner similar to graphics datasets, thepartitions 1514 of spreadsheet dataset 1510 each comprise a set offrames 1516. Each of the frames 1516 provide a means for viewing andmanipulating information within cells 1512 of spreadsheet dataset 1510.

Referring now to FIG. 16, the information 1600 contained within aspreadsheet dataset is illustrated. Spreadsheet dataset information 1600includes cell information 1610. Cell information 1610 comprisesinformation necessary for representing and managing each of spreadsheetcells 1512. Referring now to FIG. 17, the information contained withincell information 1610 is illustrated. For the sake of storageefficiency, cells are stored within a spreadsheet dataset in cellgroups, because each cell may contain a simple number, a string of text,or a complicated formula. The storage requirements necessary for eachcell may be quite diverse. Some cells may require only a single memorylocation, while others may require a large block of memory. For thisreason, the number of cells stored in each group is dependent upon thestorage requirements for each of the individual cell members of thegroup. An association between individual cells and the groups of whichthey are members are stored in cell groups data item 1710 of cellinformation 1610. A count of the number of cells in each group ismaintained in cell counts 1712. The spreadsheet rows represented byparticular cell groups are maintained in cell group rows data item 1714.Cell group rows data item 1714 forms an association between each of thecell groups and the rows of a spreadsheet that they represent. Cell data1716 is a portion of spreadsheet dataset 1510 used for the storage ofthe numeric, textual, or formula contents of each of the individualcells of a spreadsheet. Each of the individual cell groups of aspreadsheet may be accessed using a cell group index 1708 into cellinformation 1610. In this manner, each of the cells of a spreadsheet maybe managed on a cell group basis.

Referring again to FIG. 16, spreadsheet dataset information 1600includes a total row count 1612, a total column count 1614, row heightparameters 1616 and column width parameters 1618. These parameters areused to define the dimensions of the spreadsheet represented byspreadsheet dataset 1510. Dependency information 1620 defines therelationship between cells. For example, the value contained within aparticular cell may be dependent upon or derived from the valuecontained in a different cell.

Referring now to FIG. 18, the content of the dependency information 1620maintained within spreadsheet dataset 1510 is described. For each cell1810, the corresponding dependent cells 1812 are retained. A cell ID1808 is used to access the dependency information for a particular cell.The means for retaining dependency information for cells in aspreadsheet is well-known in the art.

Referring again to FIG. 16, spreadsheet data information 1600 alsoincludes partition information 1622. Partition information 1622 is usedto manage a plurality of partitions 1514, each containing a plurality offrames 1516. Referring now to FIG. 19, the content of partitioninformation 1622 is illustrated. For each partition within spreadsheetdataset 1510 a partition type 1910 and associated frame information 1912is retained. For each partition, a partition index 1908 is used toaccess the partition data within partition information 1622. Unlikegraphics datasets, partitions within spreadsheet datasets may be ofdifferent types. Thus, a partition type parameter 1910 is necessary foreach spreadsheet partition. The various types of spreadsheet partitionscorrespond to the manner in which the frames of a partition are used. Inthe preferred embodiment, three different spreadsheet partition typesare provided: (1) object frame partitions, (2) frame view partitions,and (3) page view partitions. There is not much behavioral difference inthe three partition types. How a partition is used affects, for example,whether partial rows or columns are allowed to fit within frames.

In addition to a partition type 1910, partition information 1622includes frame information 1912 comprising data defining the frames ineach of the partitions of spreadsheet dataset 1510. Frame information1912 includes a cell origin 2010 which defines the cell of thespreadsheet dataset 1510 that is positioned at a reference positionwithin the frame. Typically, the reference position of a frame is theupper left-hand corner of the frame. The same origin position is definedin pixel coordinates with pixel origin 2012. As referenced from theframe origin defined by cell origin 2010 and pixel origin 2012, the sizeof the frame in terms of spreadsheet rows and columns is stored in framesize 2014. Frame topology information 2016 is used to define arelationship between a set of frames. View dataset 2018 provides a linkbetween the frame and another dataset using the frame to view ormanipulate spreadsheet dataset information. View dataset 2018 is aparameter representing the identity of the viewing dataset. The viewdataset 2018 may be a reference to a graphics dataset, a text dataset, adatabase dataset, or another spreadsheet dataset. In this manner,independent datasets may be linked or nested in any arbitrary hierarchy.In the preferred embodiment, the view dataset is a graphics dataset.

Referring again to FIG. 16, spreadsheet dataset information 1600 alsoincludes a current partition 1624 and an active partition parameter1626.

Referring now FIG. 21, a block diagram of a database dataset 2110 of thepresent invention is illustrated. Database dataset 2110 comprises aplurality of records 2112, a plurality of fields 2114, a plurality ofdatabase layouts 2116, a plurality of partitions 2118, each containing aplurality of frames 2120. Database datasets are primarily used to managelists of records. Fields and layouts are structures for arranging recorddata in various configurations.

Database datasets are somewhat more complicated than other types ofdatasets for two main reasons. The first reason for this is that thedatabase datasets are managed using constructs provided by other datasettypes. For example, database datasets use graphics datasets fordisplaying layouts. Further, database datasets use text datasets forediting information in fields. In addition, database datasets use cellgroup storage facilities and formula evaluation facilities ofspreadsheet datasets. Thus, database datasets are hierarchicalcomposites generated from other dataset primitives.

Another aspect that makes database datasets somewhat more complex is thevarious partition types provided for database datasets. For example, inorder to simply view the record information in a database dataset, abrowse partition is provided in the preferred embodiment. Frames in abrowse partition are used to display record information in a pre-definedconfiguration. Using a second partition, users are allowed to edit alayout instead of the information contained within a record. In order tosupport layout editing, a layout partition is provided for the purposeof displaying a layout instead of displaying records and record data.Using a third partition type, users of a database dataset can enterrecord information that is used as search criteria for searching throughthe database for records matching the search criteria. This well knowndatabase search technique is typically called a database “find”interface. In support of the “find” operation, a “find” partition isprovided. In a “find” partition, a record template is displayed withinthe record frames and search criteria is input by a user into the fieldsof the frame instead of record data. In addition, database datasetsprovide frame view partitions and page view partitions. The use ofpartitions in a database dataset will be described in more detail below.

Referring now to FIG. 22, the database dataset information 2200 of adatabase dataset 2110 is illustrated. As shown, database datasetinformation 2200 comprises record information 2210. Referring now toFIG. 23, record information 2210 is illustrated in detail. Recordinformation 2210 comprises record index table 2310 and record data 2312.Record data 2312 comprises the actual database record contents, eachrecord of which is indexed using record index table 2310.

Referring again to FIG. 22, database dataset information 2200 includesfield information 2212. Referring to FIG. 24, field information 2212 isshown in detail. Field name 2410 represents the identity of a particulardatabase field. Each field includes a type specification 2412 whichidentifies the type of information that may be contained within thefield. For example, a particular field may be a numeric field, analpha-numeric field, a date field, or a variety of other types ofwell-known database field types. Formula 2414 provides a means forstorage of a formula or computational process that may be applied to aparticular field. Dependencies 2416 provides a means for linking thecontent of one field to another field. In a manner similar tospreadsheet cells, fields of a database may be interlinked in adependency table such as dependencies 2416.

Referring again to FIG. 22, database dataset information 2200 includeslayout information 2214. Referring now to FIG. 25, layout information2414 comprises field names 2510 and field positions 2512. For aparticular database layout in a database dataset, a layout includes thecombination of a set of fields that are identified using field names2510. Each of the fields may be arranged in a particular configurationas specified by field positions 2512. Layout is defined primarily by agraphics dataset storing field and label positions.

Referring again to FIG. 22, database dataset information 2200 includessort order 2216 which identifies a particular sorting of the records inthe database dataset. The find requests field 2218 is used for storageof search criteria that is used for searching the contents of a databasedataset. The use of search criteria and the specification of same in adatabase is well-known in the art. Edit field 2220 identifies a field ofa database dataset that is currently being edited. Partition information2222 specifies a plurality of partitions associated with a databasedataset and a plurality of frames associated with each partition.

Referring now to FIG. 26, the contents of partition information 2222 isillustrated. In a manner similar to a spreadsheet dataset, partitioninformation 2222 includes a partition type 2610. As described above,partition type 2610 specifies one of several types of available databasedataset partitions including a layout partition, a find partition, aframe view partition, and a page view partition. A layout partition isused for editing a database layout. A layout may be edited by specifyingwhich fields of a database dataset are included in a particular layoutand by specifying the positions of the selected fields within thelayout. A find partition is used for entering search criteria that isused for searching records of a database. A frame view partition andpage view partition are used in a browse mode for displaying thecontents of database records. Frame view partitions and page viewpartitions are described in more detail in connection with FIG. 27.

Frame information 2612 of partition information 2222 containsinformation related to the frames of each of the partitions of thedatabase dataset. Referring to FIG. 27, frame information 2612 isillustrated in detail. Frame information 2612 contains a frame type2710, which identifies the frame as a browse frame, a layout frame, or afind frame. Browse frames, layout frames, and find frames correspond tothe partition types described above. Frame information 2612 alsoincludes a frame size 2712 which defines the dimensions of the framewithin the database dataset. Frame information 2612 also includes a viewdataset 2714. View dataset 2714 identifies the dataset that is using aparticular frame to view or manipulate the information within a databasedataset. The dataset referenced by view dataset 2714 may be a graphicsdataset, a text dataset, a spreadsheet dataset, or another databasedataset. Page view information 2716 is used for maintaining informationrelated to page view frames. The information retained for page views isillustrated in FIG. 28. Similarly, frame information 2612 includes frameview information 2718 which describes frame view frames. The datacontained within frame view information 2718 is illustrated in detail inFIG. 29.

Referring now to FIG. 29, frame view information 2718 is illustrated.Frame view frames are used to view the information within a databasedataset as referenced from a specified record origin 2910 and pixelorigin 2912 for a specified frame size as defined in frame size 2712.Frame views provide a means for splitting a window into predefinedsub-regions or window panes and thereafter assigning a frame viewpartition to each window pane. Because one partition is assigned per onewindow pane, each pane can be scrolled independently. Each partition isresponsible for managing the portion of the database dataset which theview partition is displaying. Graphics, spreadsheet, and databasedatasets can use frame views.

Referring now to FIG. 28, page view information 2716 is illustrated.Page view information 2716 comprises a frame table 2810 and summaryinformation 2812.

The present invention provides a window structure for viewinginformation contained in one of the datasets described above. Referringnow to FIG. 30, window structure 3010 is illustrated. Window structure3010 of the present invention comprises a group of datasets 3016 whichincludes a primary dataset 3012 and a plurality of secondary datasets3014. The secondary datasets 3014 are not explicitly stored in thewindow; however, there is a logical connection between the secondarydatasets 3014 and the window 3010 as indicated by the dashed connectinglines in FIG. 30. These datasets 3016 are used to retain the informationviewed by window 3010. Datasets 3016 may be graphics datasets, textdatasets, spreadsheet datasets, or database datasets as described above.Thus, each of the datasets 3016 comprise a plurality of frames withineach of the datasets.

Each window in the present invention is responsible for managing scrollbars, zoom boxes, rulers, and tool palates associated with a particularwindow. These windowing mechanisms are generally well known in the art.Windows in the preferred embodiment use structures called views 3018 tomanage interaction with the contents of the window. Views 3018 provide ameans by which a window 3010 may be used to view a particular subset ofinformation in datasets 3016. Views 3018 are divided into two classes:frame views 3020 and page views 3022. A window in which information isviewed using frame views 3020 is comprised of a plurality of panes 3024.Panes 3024 each are subsets of the available viewing area of a window inwhich a particular subset of information from a dataset can be viewed.This information is provided by a partition of a dataset as describedabove. Each of panes 3024 have a corresponding partition 3026 onto adataset. This dataset is referred to as the view dataset or viewdset.The viewdset is the dataset of which window 3010 provides a view. Forexample, in a graphics window, the viewdset is a main graphics dataset.There is one partition per pane, because the panes can be scrolledindependently. Each partition retains information defining the portionof the dataset being viewed in the partition. For a window 3010, using aframe view 3020, the contents of the window 3010 are drawn by drawingone frame of partitions 3026 onto the viewdset for each window pane3024. Graphics, spreadsheet, and database windows can use frame views3020.

Referring now to FIG. 31, the content 3110 of the information retainedfor a window 3010 is illustrated. Window information 3110 comprisesdataset information 3112. Dataset information 3112 comprises handles orpoints to a plurality of datasets associated with a window in thepresent invention. Referring now to FIG. 32, the contents of datasetinformation 3210 are illustrated. Dataset information 3210 comprises aprimary dataset handle 3212. Primary dataset handle 3212 references theprimary dataset or viewdset of a window. The primary dataset is the mainsource of information the window is responsible for displaying. Theprimary dataset handle 3212 references one of the datasets describedabove. Secondary datasets can be referenced through the primary dataset.By providing a primary dataset and a plurality of secondary datasetsassociated with a single window, information of a variety of differenttypes may be displayed simultaneously within a single window. For adatabase window, dataset information 3210 also includes a databaselayout specification 3216. Database layout 3216 provides a means fordefining one of a plurality of database layouts for display in aparticular window. Using dataset information 3210, the source ofinformation for display in a window is specified. Referring again toFIG. 31, window information 3110 includes view information 3114.

Referring now to FIG. 33, the content of the view information 3310included within window information 3110 is illustrated. View information3310 includes a view kind field 3312. View kind field 3312 defines thetype of view currently active within a window. The kinds of viewsinclude a graphics dataset frame view, a graphics dataset paged view, aword processor or text view, a spreadsheet page view, a spreadsheetframe view, a database browse view, a database paged view, a databasefind view, and a database layout view. Depending upon the view kindfield 3312, either frame view information 3314 or page view information3316 of view information 3310 is used for displaying information in awindow. Frame view information 3314 includes information defining frameviews 3020. Page view information 3316 comprises information definingpage views 3022.

Referring now to FIGS. 34 and 35, the content of frame view information3410 is illustrated. As illustrated in FIG. 34, frame view information3410 comprises a pane count 3412 and pane information 3414. Because aframe view method of displaying information in a window in the presentinvention comprises the display of information in a plurality of panes,a count 3412 of the number of panes in the frame view is provided. Asillustrated in FIG. 35, pane information 3510 comprises informationcorresponding to each of the plurality of panes of the frame view. Apane number 3516 is used to index into a pane information 3510 for thepurpose of locating information for a particular pane. For each pane, apartition index 3512 is retained along with the definition of thelocation of the pane 3514 in the window of which the pane is a member.Thus, pane information is used to define a plurality of panes each witha corresponding dataset partition index used for obtaining theinformation for display within the pane. A plurality of panes 3024 maythereby be displayed using a frame view 3020.

Referring again to FIG. 30, views 3018 also include page views 3022.Page views 3022 provide a means by which a document may be constructedin a paged representation such as a representation in a word processingdocument. Page views 3022 are also used for printing a document. As withframe views 3022, a window using a page view 3022 has a viewdset. Theviewdset comprises the primary dataset being viewed by the window. Inaddition, page views 3022 also have a page dataset 3028. Page dataset3028, which is typically a graphics dataset type, provides a means forcombining frames into a page. Each page is drawn as a correspondingframe through the page dataset 3028 (i.e. page frames). These pageframes 3032 provide a means for segmenting a document into pages, eachcorresponding to a frame of the page dataset. In addition, a formdataset 3030 may be used to combine information from another datasetonto each page of the page view. In this way, headers and footers of aword processing document may be applied. In this configuration, the pagedataset 3028 references form dataset 3030. The form dataset 3030 maythen reference frames from the viewdset in combination with frames fromsecondary datasets. Headers and footer information may be stored inthese secondary datasets. It will be apparent to those skilled in theart that information other than header and footer information may beapplied to a page in a page view format. Typically, the page dataset3028 contains a frame object which is marked as relative. A relativeframe object means that the object occurs at the same location in eachframe. Relative objects also inherit their frame numbers from theirparents. The relative frame object views form dataset 3030. The formdataset 3030 comprises everything that repeats on a page level. Forexample, column formats, headers, and footers. Columns in a page view,such as those implemented in columns of text in a word processingdocument, may be implemented as column objects. Column objects are alsorelative objects in that they can inherit frame indices from theirparent objects. With multiple columns, a form size attribute of graphicsdatasets is used to make the frame indices inherit correctly. Forexample, with a three column page, the first column of page 2 should beframe index three and not frame index 1.

Referring now to FIG. 31, window information 3110 includes page viewinformation 3118. Page view information 3118 comprises information forimplementing the page view functionality 3022 provided by the presentinvention. Referring now to FIG. 36, the content of page viewinformation 3610 is illustrated. Page view information 3610 comprises apage count 3612 which defines the number of pages represented in theview dataset. Page view information 3610 also includes page datasetinformation 3614. Referring now to FIG. 37, the contents of page datasetinformation 3710 is illustrated. This information includes form dataset3712 which is a handle or pointer to a form dataset 3030 whichreferences page frames from the primary dataset and other secondarydatasets. Referring to FIG. 38, form dataset information 3810 is shownto include references to a plurality of page frames 3812 indexed using apage number 3814. Each page in a page view has associated with it asingle frame from a dataset. Dataset frames are described in earliersections of this detailed description of the invention.

Referring again to FIG. 36, page view information 3610 includes a pagetopology 3616. Page topology 3616 is used to define the pageorganization for a particular document. Thus, the sequencing of pages isdefined using paged topology 3616. Thus, page view information 3610 isused to define page views 3022 of window 3010.

Referring again to FIG. 30, window 3010 includes a context list 3040.Context list 3040, maintained on a window basis is used to define thescreen locations of frames displayed within a window 3010. A context isa description of a location and scale in which a frame is represented onthe display screen. In the present invention, information within awindow can be viewed in multiple panes, in different pages, in differentpartitions, in different frames, and in different scales. In order toincrease the performance of the display of information within thisstructure, context lists are built to describe the location of theframes for a specific dataset within a given window. The context list3040 is built by traversing the view structure for a given window insearch of frames for a dataset of that window. When frames are found,information corresponding to that frame is determined and stored incontext list 3040. This information includes the origin of the frame(i.e. a QuickDraw origin in the preferred embodiment), a clipping regioncorresponding to the frame, and information defining whether the frameis covered by other objects of the window. This cover informationdefines which parts of the frame are obscured. For transparent frames,objects behind the frame can obscure part of the frame also.

Context lists apply to a single dataset in the preferred embodiment,however, documents in the preferred embodiment may contain multipledatasets and more than one dataset may be manipulated. Only one contextlist per window is retained at a time. When a context list is traversed,a test is performed to determine if the dataset corresponding to thecurrent context list is the same as the dataset requesting the contextlist traversal. If this is not the case, the context list for therequesting dataset is entirely rebuilt. Referring now to FIG. 31,context list information 3120 is retained within window information3110. The content of context list information 3120 is illustrated inFIG. 39.

Referring now to FIG. 39, the content of context list information 3910is illustrated. For each window, a plurality of contexts are retainedwithin context list 3910. Each individual context within context list3910 is referenced using a context index 3911. Information retained foreach context is illustrated in FIG. 39. Each context is defined by theframe index 3918 and partition index 3916 to which it corresponds. Inaddition, the pane number 3912 and/or page number 3914 in which thecontext occurs is also retained within context list 3910. The frame size3920 of the frame referenced by frame index 3918 is also retained withinthe context list. Blocking region 3922 defines the bounds of objectsblocking the current context including objects located behind thecontext for a transparent frame. Clipping region 3924 provides a meansfor defining an interior and exterior region of the context. Theexterior region may be clipped using well known techniques. Origin 3926is used to define the location of the context within the windowcoordinate space. In the preferred embodiment, the origin is definedusing a QuickDraw protocol developed by Apple Computer®, Inc.

Referring now to FIG. 31, window information 3110 includes window type3122. In the preferred embodiment, the types of windows supportedinclude object windows, text windows, spreadsheet windows, and databasewindows. The window types correspond to the dataset types describedabove. Thus, the data structures for representing windows in thepreferred embodiment are described.

Referring now to FIG. 40, the document structure 4010 used in thepreferred embodiment is illustrated. Documents 4010 in the presentinvention comprise a plurality of windows 4012 for viewing andmanipulating information of the document. Each of the windows 4012comprise a window structure equivalent to a window 3010 illustrated inFIG. 30 and described above.

Referring now to FIG. 41, the information retained on a document basis4110 is illustrated. Document information 4110 comprises a window list4112 which includes a pointer or handle for each window defined within adocument. Each of the windows referenced within window list 4112corresponds to a window 3010 as illustrated in FIG. 30 and describedabove. Window list 4112 provides a means for defining a plurality ofwindows for viewing information within a particular document. Principaldataset 4114 defines the view dataset of the first window created forthe document. Graphic object information 4116, text information 4118,spreadsheet information 4120, and database information 4122 are used todefine information relative to a document layer and corresponding toeach type of dataset existing within the document. For example, theidentity of the chosen tool or function within each of the four datasettypes is retained within information areas 4116-4122. Documentformatting information, such as margins, is retained within formattinginformation 4124. It will be apparent to those skilled in the art thatmany other document formatting parameters may be retained withinformatting information 4124. Printing information 4126 is used forstoring parameters related to printing a document such as theorientation of the document on the printed page (i.e. portrait orlandscape). Again, it will be apparent to those skilled in the art thatmany printing parameters retained for a particular document may beprovided within printing information 4126. Default information 4128provides a means for storing default parameters or preferences for aparticular document. In this manner, the specification of each and everyparameter for a particular document is not necessary. The use of defaultinformation for documents is well known in the art. File systeminformation 4130 is also retained for a particular document. Forexample, the file name and access path to the document is providedwithin file system information 4130. It will be apparent to thoseskilled in the art that other document level information parameters maybe provided in addition to those illustrated in FIG. 41.

Having described the data structures included in the present invention,the following sections describe the processing logic that uses thesedata structures for drawing frames on a display screen. Referring toFIG. 42, a flow chart of the processing logic for drawing a frame usingthe present invention is illustrated. This processing logic is activatedby an operating system program or application program when a portion ofinformation in a frame of a dataset needs to be drawn or updated. Oncethis processing logic is activated, the processing flow beginning atbubble 4210 as illustrated in FIG. 42 is executed.

Referring now to FIG. 42, the draw frame processing logic isillustrated. Upon activation, a drawing flag is checked to determine ifdrawing frames to the display screen is enabled (decision block 4212).If drawing is disabled, processing path 4214 is taken to terminationbubble 4252 where processing for the draw frame operation terminates.If, however, drawing is enabled, processing path 4216 is taken todecision blocks 4218, 4226, 4234, and 4242. In each of these decisionblocks, a test is performed to determine the type of frame that is to bedrawn. Because a frame identifier or frame index is provided as input tothe draw frame processing logic, the frame identifier may be used tolocate a corresponding dataset of which the input frame is a member.Thus, if the frame is a member of a graphics dataset, processing path4220 is taken to processing block 4222 where a draw graphics frameoperation is performed. The draw graphics frame operation is describedin flow chart form in FIG. 43. If the input frame is a frame of a textdataset, processing path 4228 is taken to processing block 4230 where adraw text frame operation is performed. The draw text frame operation isdescribed in flow chart form starting in FIG. 47. If the input frameidentifier is the member of a spreadsheet dataset, processing path 4236is taken to processing block 4238 where a draw spreadsheet frameoperation is performed. The draw spreadsheet frame operation isdescribed in flow chart form starting in FIG. 51. If, however, the inputframe is a member of a database dataset, processing path 4244 is takento processing block 4246 where a draw database frame operation isperformed. The draw database frame operation is described in flow chartform starting in FIG. 53. If the frame identifier input to the drawframe processing logic is not a member of a known dataset, an errorexception (processing block 4250) occurs and processing terminates attermination bubble 4252.

Referring now to FIG. 43, the processing logic for a draw graphics frameoperation 4310 is illustrated. There are two distinct situations underwhich drawing may occur. The first situation is an update event. Updateevents typically lead to the full traversal of the data structures usedfor the display of windows. For example, an update event occurs whenpart of a window becomes uncovered and needs to be redrawn. The secondsituation under which drawing may occur is the result of a user actionthat may be handled through the context mechanism of the presentinvention. For example, typing lines of text causes the edited textlines to be redrawn using the context list. In most cases, theprocessing logic that performs the drawing does not distinguish betweenan update event and a context event. Drawing updates using the contextlist can be performed much more quickly than updates using a traversalthrough the data structures. In addition, drawing performed for anupdate event typically uses an off screen bitmap. Referring now to FIG.43, the processing logic for drawing a graphics frame is illustrated.This processing logic is executed in order to draw a frame of a graphicsdataset. Upon execution, the object list of the graphics data set istraversed to locate each of the graphic objects in the dataset(processing block 4312). Next, each object in the graphics dataset isprocessed starting with a loop at processing block 4314. As describedabove for graphics datasets, graphic objects may be of various typesincluding frame objects and database field objects. Other well knowngraphic objects include line objects, rectangle objects, roundedrectangle objects, ovals, arcs, polygons, and other forms of graphicobjects. If the object retrieved from the graphics dataset in processingblock 4314 is a frame object, processing path 4318 is taken toprocessing block 4320 where the frame object is drawn. The processinglogic of the present invention for drawing a frame object is illustratedin FIG. 45.

Referring to FIG. 45, the processing logic for drawing a frame object ofa graphics dataset is illustrated. Upon activation, the draw frameobject processing logic is initiated starting at bubble 4510 in FIG. 45.First, the frame bounds are computed in processing block 4512. The frameborders of the frame object are drawn in processing block 4522. Inaddition, the interior of the frame is filled with color or black andwhite. The clipping region for the frame is generated in processingblock 4524 and the draw frame processing logic illustrated starting atFIG. 42 is recursively called in processing block 4526. The draw frameobject processing logic terminates at end bubble 4528.

Using frame objects in a graphics dataset, a frame hierarchy may beestablished whereby datasets and their associated frames may be nestedwithin other datasets to any arbitrary level supported by theimplementation. Thus, using a frame object in a graphics dataset, forexample, a frame is nested within the graphics dataset. Using the sameprocessing logic structure, other datasets and frames may be nestedwithin the nested frame thereby creating a hierarchical structure. Thesenested frames are drawn using the same draw frame processing logic inrecursive execution.

Referring again to FIG. 43, if the object is a database field object(decision block 4324), processing path 4326 is taken to processing block4328 where the database field object is drawn. Referring now to FIG. 46,the processing logic for drawing a database field object is illustrated.Upon entry for a database field object, the bounds of a frame forviewing the database field are computed in processing block 4612. If thewindow in which the database field object is located is configured for adatabase layout view (decision block 4614), processing path 4618 istaken to processing block 4620 where the bounds and label of the fieldare drawn using a database dataset function. If, however, the window isnot in a database layout, processing path 4616 is taken to processingblock 4622 where the field contents are drawn using a database datasetfunction. Processing then terminates for the draw database field objectprocessing logic at processing bubble 4624.

Referring again to FIG. 43, other graphics objects are drawn inprocessing blocks 4336, 4344, and 4350. As continued through the bubblelabeled B illustrated in FIG. 44, additional objects are drawn usingprocessing block 4414, 4422, 4430, and 4438. The objects drawn in theseprocessing blocks are generally well known to those of ordinary skill inthe art. Once all objects in the graphics dataset have been processed.Processing path 4448 is taken where processing for the draw graphicsfunction terminates at the exit bubble 4450 as illustrated in FIG. 44.If processing for each of the objects in the graphics dataset is notcomplete, processing path 4446 is taken to the bubble labeled C asillustrated in FIG. 43 where the object processing loop is executedagain for the next object.

Referring again to FIG. 42, the processing logic for the draw frameoperation continues at decision block 4226. If the frame to be drawn isa text frame, processing path 4228 is taken to processing block 4230where the text frame is drawn. The draw text frame processing logic isillustrated in detail in FIG. 47.

Referring now to FIG. 47, the processing logic for the draw text frameoperation is illustrated. A frame number to draw is provided as input tothe draw text frame processing logic. This frame number is used toaccess data in the text dataset in processing block 4712. Specifically,the text line count and text line height is retrieved from the textdataset. If any objects overlap the text lines in the text frame,processing path 4716, is taken to processing block 4722 where the drawframe update process is enabled to re-draw the overlapping objects. Ifno objects overlap any text lines in the text frame, processing path4718 is taken to processing block 4724. Beginning with the starting linenumber of the frame, each text line in the text frame is drawn inprocessing block 4726. In the preferred embodiment, lines are drawnduring the update of a screen display when objects overlap. When alllines have been drawn, processing path 4734 is taken to the bubblelabeled D illustrated in FIG. 48.

Referring now to FIG. 48, processing for the draw text frame operationcontinues at the bubble labeled D. If the text height for the text frameis greater than the frame height, processing path 4814 is taken toprocessing block 4816 where an overflow box with a text overflow icon isdrawn. If the text can be contained within the frame, processing path4812 is taken such that an overflow box is not drawn. If there is atleast one footnote in the text frame, processing path 4822 is taken toprocessing block 4824 where a count of the number of footnotes isretrieved. Each footnote of the text frame to be drawn is represented asa nested text frame. Nested frames in a text dataset are implementedusing text item information of a text dataset as described earlier. Foreach footnote in the text frame, the frame index of the footnote isretrieved in processing block 4828 and the draw frame function isrecursively called to draw the nested footnote text frame in processingblock 4830. The recursive call to the draw frame function is describedabove in connection with FIG. 42. The process of drawing text frames foreach footnote continues until all footnotes of the text frame are drawn.When all footnotes are drawn, processing path 4838 is taken to thetermination bubble 4840 where processing for the draw text frameoperation terminates.

Referring again to FIG. 47, the processing logic used for drawing a textline in processing block 4726 is illustrated in detail in FIGS. 49 and50.

Referring now to FIG. 49, the processing logic for drawing a text linein a text frame is illustrated. Processing block 4912 is executed toinitialize a loop to the starting position of the text line to be drawn.For each character in the text line, the style of the character isretrieved in processing block 4914. If the style of the currentcharacter is the same as the previous character, processing block 4920is taken to processing block 4922 where the current character is addedto a buffer. The next character is retrieved from the text line inprocessing block 4924 and the loop for processing characters of the textline with the same style continues until all characters of the text linehave been processed (processing path 4930). Processing for the draw textline operation continues at the bubble labeled E illustrated in FIG. 50.

Referring now to FIG. 50, the buffer of characters collected by theprocessing logic in FIG. 49 is manipulated starting at processing block5010. If the character in the buffer is a frame object, processing path5018 is taken to processing block 5020 where a frame number is retrievedfor the frame object. The frame associated with the frame object isrecursively drawn in processing block 5022. The recursive draw frameoperation is illustrated starting in FIG. 42. The frame referenced by aframe object can be any frame type; however, the frame type is typicallya graphics frame. Once the frame associated with the frame object isdrawn in processing block 5022, the next character is retrieved from thebuffer in processing block 5024 and the loop continues along processingpath 5028 until all characters of the same style in the buffer have beenprocessed (processing path 5030). Once all characters in the buffer havebeen processed, processing continues at the bubble labeled F asillustrated in FIG. 49.

Referring now to FIG. 49, processing continues at the bubble labeled Fwhere the next character is retrieved from the text line. The textbuffer is again filled with characters of the same style until allcharacters of the line have been processed. In this manner, charactersof the text line are drawn and embedded frame objects representingframes of an arbitrary type are also recursively drawn. In this manner,frames may be embedded within a text frame in a nested or hierarchicalfashion.

Referring now to FIG. 42, processing for the draw frame operationcontinues at decision block 4234. If the frame to be drawn is aspreadsheet frame, processing path 4236 is taken to processing block4238 where the spreadsheet is drawn. Processing logic for the drawspreadsheet operation is illustrated in detail in FIG. 51.

Referring now to FIG. 51, the processing logic for the draw spreadsheetframe operation is illustrated. Upon activation, spreadsheet frameinformation including the size and location of the frame is retrievedfrom the spreadsheet dataset in processing block 5112. The row andcolumn headers are drawn in processing block 5114. A clipping region forthe spreadsheet frame is retrieved from context information inprocessing block 5116. The clipping region defines the visible area ofthe spreadsheet frame. Gridlines are drawn into the visible area of theframe in processing block 5118. Cell contents of the spreadsheet aredrawn into the frame in processing block 5120. Cells only within theclipping region are drawn. The active cell is drawn into the frame ofthe current partition in processing block 5122. The active cell is acell in which a user last activated an input device such as the functionbutton on a mouse device. Processing logic for the draw spreadsheetframe operation continues at the bubble labeled G illustrated in FIG.52.

Referring now to FIG. 52, the processing logic for the draw spreadsheetframe operation continues at the bubble labeled G. The selected regionis drawn in processing block 5210. The draw frame function isrecursively called in processing block 5212 to draw any frame thatcovers a portion of the spreadsheet frame. The draw frame function isillustrated starting in FIG. 42. In this manner, a nested graphicsdataset of a spreadsheet dataset can be drawn. This nested dataset cancontain frames or other objects in any arbitrary hierarchy. Only oneframe is drawn during this processing cycle. The frame drawn is a frameof the dataset having the covering object. This frame can, in turn,contain other frames. Processing for the draw spreadsheet frameoperation terminates at the bubble 5214 illustrated in FIG. 52.

Referring again to FIG. 42, processing logic for the draw frameoperation continues at decision block 4242. If the frame to be drawn isa database dataset frame, processing path 4244 is taken to processingblock 4246 where the database frame is drawn. The processing logic forthe draw database frame operation is illustrated in FIGS. 53-55.

Referring now to FIG. 53, the processing logic for the draw databaseframe operation is illustrated. There are several types of databaseframes. Once such frame is a database layout frame. If the databaseframe to be drawn is a database layout frame, processing path 5314 istaken to processing block 5330 where the draw frame operation isrecursively used to draw the form of the layout using a graphicsdataset. The form of the database layout comprises the configuration ofdatabase fields within a record. The processing logic for the draw frameoperation recursively called is illustrated starting in FIG. 42. Oncethe form of the layout is drawn, a segment outline and a segment namefor each segment of the layout is drawn in processing blocks 5332 and5334. Processing continues at the bubble labeled I as illustrated inFIG. 55 where processing for the draw database frame (database layoutframe) terminates at bubble 5534.

Referring again to decision block 5312, processing path 5316 is taken ifthe database frame to be drawn is not a database layout frame. In thiscase, the first database record of the database dataset is retrieved inprocessing block 5318. The draw frame operation is recursively used todraw the retrieved record in the database frame in processing block5320. Each record of the database dataset is drawn in an individualframe in the loop between processing block 5320 and decision block 5324.Once all records are drawn, processing path 5328 is taken to the bubblelabeled H as illustrated in FIG. 54.

Referring now to FIG. 54, processing for the draw database frameoperation continues at the bubble labeled H illustrated in FIG. 54. If abrowse or find function is active (i.e. a frame view is active),processing path 5414 is taken to decision block 5416. If multiplerecords are being displayed in the browse or find mode, processing path5420 is taken to processing block 5422 where a line separating an activerecord indicator area is drawn. Lines separating a layout header andfooter area are drawn in processing block 5424. Processing continues atthe bubble labeled J as illustrated in FIG. 55. Referring again todecision block 5416, if multiple records are not being shown for thebrowse or find mode, processing path 5418 is taken to the bubble labeledJ as illustrated in FIG. 55.

Referring now to FIG. 55, if there is a layout header, processing path5514 is taken to processing block 5516 where the header is drawn at thetop of the frame. If no layout header is present, processing path 5512is taken and the header is not drawn into the frame. If there is alayout footer, the footer is drawn at the bottom of the frame inprocessing block 5524. If no layout footer is present, processing path5520 is taken and the footer is not drawn at the bottom of the frame. Ifthere is an active field as selected by the user of the database,processing path 5530 is taken to processing block 5532 where the activefield is drawn into the frame. Processing for the draw database frameoperation then terminates at processing bubble 5534.

Referring again to FIG. 54, if a browse or find function is not active(processing path 5412), processing continues at the bubble labeled K asillustrated in FIG. 55. At the bubble labeled K illustrated in FIG. 55,processing for drawing the header and footer into the frame is bypassedfor the inactive browse or find function.

Referring now to FIGS. 56 and 57, the processing logic for manipulatinga context list in the present invention is illustrated. A context is adescription of the location and scale in which a frame is represented onthe display screen. For each window displayed for a particular document,a context list for that window is maintained. One context list ismaintained for the currently active dataset of that window. The contextlist describes the origin and clipping information for each instance ofeach of the frames of a specified dataset which are viewed in a givenwindow. The use of context for displaying frames provides an efficientway for locating frames on a display screen. In addition, the contextlist provides an efficient means for determining whether frames orportions of frames are hidden by other frames in the system. Thus, eachcontext in the context list stores information about which parts of thecontext are obscured. For transparent frames, objects behind the framecan obscure the frame also. Thus, transparency information is alsomaintained in the context list. Context lists apply to a single dataset.However, documents may contain multiple datasets and a user canmanipulate multiple datasets. Only one context list per window ismaintained at a time. However, whenever a context list traversal isperformed, the context list traversal processing logic verifies that thedataset for which the context list traversal is being performed is thesame as the dataset for which the context list was originally built. Ifthis is not the case, the context list is rebuilt for the new dataset.

Referring now to FIG. 56, the processing logic for the build contextlist operation is illustrated. A window identification (ID) and adataset ID is received as input parameters to the build context listprocessing logic (processing block 5612). The abstract documentstructure is traversed in processing block 5614 in the same manner asthe process used to draw a frame as described earlier starting with FIG.42. In the context building process, however, the frame is not actuallydrawn. Instead, for frames the would be drawn, the current coordinatesystem (origin) and a clipping region are added to the context list.When each of the frames of the dataset have been processed in thismanner, termination bubble 5718 is executed where processing for thebuild context list operation is terminated.

Referring now to FIG. 57, the processing logic for the traverse contextlist operation is illustrated. The traverse context list operation isperformed to set up a display environment for each context of a contextlist. A window ID and dataset ID is received by the traversed contextlist processing logic in processing block 5812. If the input dataset IDis equal to the dataset ID for which the context list was originallybuilt, processing path 5816 is taken to processing block 5822. If,however, the input dataset ID is different from the dataset IDcorresponding to the context list, processing path 5818 is taken toprocessing block 5820 where the build context list processing logic isexecuted to build a context list for the input dataset ID. Once thecontext list for the input dataset ID is built, a pointer to the nextcontext in the context list is retrieved in processing block 5822. Thispointer is updated to point to the next context in the context list.This new context is designated as the current context. In processingblock 5824, the display environment is set up for the current context bysetting the QuickDraw origin and clipping region appropriately. Theseparameters are set to the values they would have if this instance of theframe were being drawn in an update operation. A pointer to the currentcontext is saved in processing block 5826 and processing for thetraverse context list operation terminates at bubble 5828 as illustratedin FIG. 57.

OPERATION OF THE PREFERRED EMBODIMENT

Referring now to FIGS. 58 to 64, sample screen snapshots of the presentinvention in operation are provided. In FIG. 1, a selection box ispresented to a user on selection of a command for creating a newdocument. Because the present invention supports multiple data types,multiple document types are also provided. The principal dataset type4114 of the document is defined by the user selection in the selectionbox illustrated in FIG. 58.

Referring to FIG. 59, a window 5910 is illustrated in a page viewconfiguration. Two pages (5912 and 5914) of a word processing documentare shown. A text dataset in window 5910 contains a block of text 5916as viewed in page 5912. A graphics dataset in window 5910 containing arectangle object 5918 is viewable in both pages 5912 and 5914. Note thatthe single rectangle object is shown spanning two pages. Because therectangle object of the graphics dataset is maintained independentlyfrom the view of the rectangle, the graphic object may be arbitrarilypositioned either across a page boundary or overlapping another datasetwithout causing additional processing overhead or special case handling.The present invention provides views of these datasets (i.e. frames)that insulate dataset-specific behavior from the particular environmentsin which the datasets must operate. In particular, datasets are notresponsible for managing functions such as window scrolling, windowsub-regions (panes), paging or other environment-specific functions.These functions are handled uniformly, independent of document ordataset type, at a higher functional level. A frame object may beinserted as a character in text block 5916. In this case, a frame suchas a graphics frame for viewing rectangle 5918 is nested within a textdataset for viewing text block 5916.

In FIG. 60, a similar sample is shown except that the rectangle object5918 is shown as a transparent object. Note the text dataset is visiblethrough the rectangle object.

Referring to FIG. 61, two graphic objects are shown (a line segment 6112and a rectangle 6114) in a page of a window. A text block 6116 is alsoshown. These objects may be manipulated and viewed as independentobjects regardless of the manner in which the objects are actuallydisplayed. Both the line object 6112 and the rectangle 6114 may bemembers of the same graphic dataset.

FIG. 62 shows a text block 6110, a line segment graphic object 6112, arectangle graphic object 6116, and a spreadsheet 6114 of a spreadsheetdataset all viewable in a window in a frame view configuration. Thespreadsheet 6114 comprises a set of cells arranged in a row and columnformat with row and column labelling. Each of these different data types(i.e. text, graphics, and spreadsheet) are contained within a singledocument (i.e. Document A, which is a word processor (WP) type).Document A may be saved in a file system as a self contained document ofa specific type.

Referring to FIG. 63, a spreadsheet 6310 of a spreadsheet dataset isshown spanning two pages of a document viewable in a window. Again,because of the independence of the view of data from the data itself asprovided in the present invention, the spreadsheet can span pages of adocument without loss of information nor the need for specialprocessing.

Referring to FIG. 64, four pages of a document in page view are shown. Asingle graphic object 6410 is shown spanning all four pages. Frames forviewing each page are provided in the structure of the presentinvention. Because each frame can view a dataset (a graphics dataset inthis case) independently, multiple frames can view the same data (i.e.graphic object in this case) in a different scale or from a differentviewpoint. Thus, multiple views of the same data can be visible at thesame time with the present invention.

Thus, a means and method for viewing and manipulating different datatypes within a single computer system environment is illustrated.

Although the present invention is described herein with reference to aspecific embodiment, many modifications and variations will readilyoccur to those skilled in the art. Accordingly, all such variations andmodifications are included within the intended scope of the presentinvention as defined about the following claims.

What is claimed is:
 1. A computer-readable medium having an integrateddocument comprising: a plurality of datasets, each dataset associatedwith a different data type and comprising: a plurality of data elementsof a data type; processing logic to apply to the data elements in thedataset; and a frame defining a two-dimensional viewable region for atleast one data element in the dataset; and window logic to display aframe, wherein activation of the frame by the window logic invokes theprocessing logic in the dataset that contains the frame.
 2. Thecomputer-readable medium of claim 1, wherein the plurality of datasetscomprises a text dataset in which the data elements are text blocks, theframe is a text frame, and the processing logic includes word processingfunctions.
 3. The computer-readable medium of claim 1, wherein theplurality of datasets comprise a graphic dataset in which the dataelements are graphics objects, the frame is a graphics frame, and theprocessing logic includes graphical functions.
 4. The computer-readablemedium of claim 1, wherein the plurality of data sets comprises aspreadsheet dataset in which the data elements are cells and dependencyinformation, the frame is a spreadsheet frame, and the processing logicincludes spreadsheet functions.
 5. The computer-readable medium of claim1, wherein the plurality of data sets comprises a database dataset inwhich the data elements are record information, field information, andlayout information, the frame is a database frame, and the processinglogic includes database functions.
 6. The computer-readable medium ofclaim 1 further comprising: logic to generate a page view of theintegrated document, the page view being dependent upon the data type ofdata elements within the page view.
 7. The computer-readable medium ofclaim 1 further comprising: logic to generate a frame view of theintegrated document, the frame view being independent of the data typeof data elements within the frame view.
 8. The computer-readable mediumof claim 1, wherein the window logic is operable to display frames fromat least two of the plurality of datasets concurrently in a singlewindow.
 9. The computer-readable medium of claim 1, wherein the windowlogic is operable to display concurrently at least a portion of a dataelement from a dataset in a first frame and a second frame, the dataelement being modifiable by activating either the first or second frame.10. The computer-readable medium of claim 1, wherein the window logic isoperable to display concurrently a first one of the data elements in adataset in a first frame and a second one of the data elements in thesame dataset in a second frame without displaying the first one of thedata elements in the second frame.
 11. The computer-readable medium ofclaim 1 further comprising: a context list including an origin andclipping and location information associated with the frame in one ofthe plurality of datasets.
 12. The computer-readable medium of claim 1,wherein the processing logic comprises one or more functions selectedfrom the set consisting of viewing, manipulating, and editing functions.13. The computer-readable medium of claim 1, wherein the plurality ofdatasets comprises a first dataset having a nested frame that referencesa second dataset for viewing the data elements of the second datasetwithin the nested frame.
 14. The computer-readable medium of claim 13,wherein the first and second datasets are associated with differentdatatypes.
 15. The computer-readable medium of claim 1, wherein at leasttwo frames are sequentially linked.
 16. The computer-readable medium ofclaim 1, wherein at least one dataset further comprises: a partitionthat includes at least one frame for the at least one dataset.
 17. Amethod of integrating different data types into a single documentcomprising: obtaining a plurality of data elements having the differentdata types; grouping the data elements into datasets based on data type;selecting processing logic for each dataset; defining a frame for eachdataset, the frame being a two-dimensional viewable region containing adata element from the dataset, wherein upon activation, the frameinvokes the processing logic in the dataset against the data element inthe frame; storing the processing logic and the frame for each datasetin the dataset; and storing the datasets in the single document.
 18. Themethod of claim 17, wherein the different data types comprise at leasttwo selected from the set consisting of text, graphics, spreadsheet, anddatabase data types.
 19. The method of claim 18, wherein selectingprocessing logic for a dataset containing text data elements compriseschoosing one or more word processing functions.
 20. The method of claim18, wherein selecting processing logic for a dataset containing graphicsdata elements comprises choosing one or more graphical functions. 21.The method of claim 18, wherein selecting processing logic for a datasetcontaining spreadsheet data elements comprises choosing one or morespreadsheet functions.
 22. The method of claim 18, wherein selectingprocessing logic for a dataset containing database data elementscomprises choosing one or more database functions.
 23. The method ofclaim 17 further comprising: defining a page view of the singledocument, the page view being dependent upon the data types of dataelement within the page view; and storing the page view in the singledocument.
 24. The method of claim 17 further comprising: defining aframe view of the single document, the frame view being independent ofthe data types of data elements within the frame view; and storing theframe view in the single document.
 25. The method of claim 17 furthercomprising: defining a context list for the single document to hold anorigin and clipping and location information associated with the framein one of datasets; and storing the context list in the single document.26. The method of claim 17, wherein the processing logic is selectedfrom the set consisting of viewing, manipulating, and editing functions.27. The method of claim 17 further comprising: defining a nested framefor a first dataset, the nested frame referencing a second dataset forviewing the data elements of the second dataset within the nested frame.28. The method of claim 27, wherein the first and second datasets areassociated with different datatypes.
 29. The method of claim 17 furthercomprising: sequentially linking at least two frames.
 30. The method ofclaim 17 further comprising: defining a partition in at least onedataset, the partition including at least one frame for the at least onedataset.
 31. A computer-readable medium having executable instructionsto integrate different data types into a single document, theinstructions comprising: obtaining a plurality of data elements havingthe different data types; grouping the data elements into datasets basedon data type; selecting processing logic for each dataset; defining aframe for each dataset, the frame being a two-dimensional viewableregion containing a data element from the dataset, wherein uponactivation, the frame invokes the processing logic in the datasetagainst the data element in the frame; storing the processing logic andthe frame for each dataset in the dataset; and storing the datasets inthe single document.
 32. The computer-readable medium of claim 31,wherein the different data types comprise at least two selected from theset consisting of text, graphics, spreadsheet, and database data types.33. The computer-readable medium of claim 32, wherein selectingprocessing logic for a dataset containing text data elements compriseschoosing one or more word processing functions.
 34. Thecomputer-readable medium of claim 32, wherein selecting processing logicfor a dataset containing graphics data elements comprises choosing oneor more graphical functions.
 35. The computer-readable medium of claim32, wherein selecting processing logic for a dataset containingspreadsheet data elements comprises choosing one or more spreadsheetfunctions.
 36. The computer-readable medium of claim 32, whereinselecting processing logic for a dataset containing database dataelements comprises choosing one or more database functions.
 37. Thecomputer-readable medium of claim 31 having further instructionscomprising: defining a page view of the single document, the page viewbeing dependent upon the data types of data elements within the pageview; and storing the page view in the single document.
 38. Thecomputer-readable medium of claim 31 having further instructionscomprising: defining a frame view of the single document, the frame viewbeing independent of the data types of data elements within the frameview; and storing the frame view in the single document.
 39. Thecomputer-readable medium of claim 31 having further instructionscomprising: defining a context list for the single document to hold anorigin and clipping and location information associated with the framein one of datasets; and storing the context list in the single document.40. The computer-readable medium of claim 31, wherein the processinglogic is selected from the set consisting of viewing, manipulating, andediting functions.
 41. The computer-readable medium of claim 31 havingfurther instructions comprising: defining a nested frame for a firstdataset, the nested frame referencing a second dataset for viewing thedata elements of the second dataset within the nested frame.
 42. Thecomputer-readable medium of claim 41, wherein the first and seconddatasets are associated with different datatypes.
 43. Thecomputer-readable medium of claim 31 having further instructionscomprising: sequentially linking at least two frames.
 44. Thecomputer-readable medium of claim 31 having further instructionscomprising: defining a partition in at least one dataset, the partitionincluding at least one frame for the at least one dataset.
 45. A methodof presenting a single interface to different data types comprising:obtaining a single document comprising: a plurality of data elements ofthe different data types; processing logic for each data type; and aframe for each data type, wherein the frame for a data type defines atwo-dimensional viewable region containing a data element of the datatype; and invoking the processing logic for a data type when the framefor the data type is activated.
 46. The method of claim 45, wherein thedifferent data types comprise at least two selected from the setconsisting of text, graphics, spreadsheet, and database data types. 47.The method of claim 46, wherein the processing logic for text dataelements includes one or more word processing functions.
 48. The methodof claim 46, wherein the processing logic for graphics data elementsincludes one or more graphical functions.
 49. The method of claim 46,wherein the processing logic for spreadsheet data elements includes oneor more spreadsheet functions.
 50. The method of claim 46, wherein theprocessing logic for database data elements includes one or moredatabase functions.
 51. The method of claim 45 further comprising:displaying a page view of the single document, wherein the singledocument further comprises the page view and the page view is dependentupon the data types of data elements within the page view.
 52. Themethod of claim 45 further comprising: displaying a frame view of thesingle document, wherein the single document further comprises the frameview and the frame view is independent of the data types of dataelements within the frame view.
 53. The method of claim 45 furthercomprising: storing an origin and clipping and location informationassociated with the frame for a data type in a context list, wherein thesingle document further comprises the context list.
 54. The method ofclaim 45, wherein the processing logic is selected from the setconsisting of viewing, manipulating, and editing functions.
 55. Themethod of claim 45, wherein the single document further comprises: anested frame for a first data type that references a second data typefor viewing the data elements of the second data type within the nestedframe.
 56. The method of claim 55, wherein the first and second datatypes are different data types.
 57. The method of claim 45, wherein thesingle document further comprises: at least two sequentially linkedframes.
 58. The method of claim 45, wherein the single document furthercomprises: a partition for at least one data type that includes at leastone frame for the at least one data type.
 59. A computer-readable mediumhaving executable instructions to present a single interface todifferent data types, the instructions comprising: obtaining a singledocument comprising: a plurality of data elements of the different datatypes; processing logic for each data type; and a frame for each datatype, wherein the frame for a data type defines a two-dimensionalviewable region containing a data element of the data type; and invokingthe processing logic for a data type when the frame for the data type isactivated.
 60. The computer-readable medium of claim 59, wherein thedifferent data types comprise at least two selected from the setconsisting of text, graphics, spreadsheet, and database data types. 61.The computer-readable medium of claim 60, wherein the processing logicfor text data elements includes one or more word processing functions.62. The computer-readable medium of claim 60, wherein the processinglogic for graphics data elements includes one or more graphicalfunctions.
 63. The computer-readable medium of claim 60, wherein theprocessing logic for spreadsheet data elements includes one or morespreadsheet functions.
 64. The computer-readable medium of claim 60,wherein the processing logic for database data elements includes one ormore database functions.
 65. The computer-readable medium of claim 60having further instructions comprising: displaying a page view of thesingle document, wherein the single document further comprises the pageview and the page view is dependent upon the data types of data elementswithin the page view.
 66. The computer-readable medium of claim 59having further instructions comprising: displaying a frame view of thesingle document, wherein the single document further comprises the frameview and the frame view is independent of the data types of dataelements within the frame view.
 67. The computer-readable medium ofclaim 59 having further instructions comprising: storing an origin andclipping and location information associated with the frame for a datatype in a context list, wherein the single document further comprisesthe context list.
 68. The computer-readable medium of claim 59, whereinthe processing logic is selected from the set consisting of viewing,manipulating, and editing functions.
 69. The computer-readable medium ofclaim 60, wherein the single document further comprises: a nested framefor a first data type that references a second data type for viewing thedata elements of the second data type within the nested frame.
 70. Thecomputer-readable medium of claim 59, wherein the first and second datatypes are different data types.
 71. The computer-readable medium ofclaim 60, wherein the single document further comprises: at least twosequentially linked frames.
 72. The computer-readable medium of claim60, wherein the single document further comprises: a partition for atleast one data type that includes at least one frame for the at leastone data type.
 73. A computer system comprising: a processor; a memorycoupled to the processor through a bus; a single document accessible bythe processor from the memory, the single document comprising aplurality of data elements of different data types, processing logic foreach data type, and a frame for each data type that defines atwo-dimensional viewable region containing a data element of the datatype; and logic executed by the processor from the memory, the logiccausing the processor to invoke the processing logic for a data type inresponse to the activation of the frame for the data type.
 74. Thecomputer system of claim 73 further comprising a computer-readablemedium coupled to the processor through the bus, the computer-readablememory having stored thereon the single document, and wherein the logicfurther causes the processor to obtain the single document from thecomputer-readable medium.
 75. The computer system of claim 74, whereinthe computer-readable medium is coupled to the bus through a networkinterface.
 76. The computer system of claim 74, wherein the logicfurther causes the processor to create the single document and to storethe single document on the computer-readable medium.
 77. The computersystem of claim 74, wherein the processor creates the single document byobtaining the plurality of data elements, selecting the processing logicfor each dataset, and defining the frame for each dataset.
 78. Thesystem of claim 73, wherein the single document further comprises: anested frame for a first data type that references a second data typefor viewing the data elements of the second data type within the nestedframe.
 79. The system of claim 78, wherein the first and second datatypes are different data types.
 80. The system of claim 73, wherein thesingle document further comprises: at least two sequentially linkedframes.
 81. The system of claim 73, wherein the single document furthercomprises: a partition for at least one data type that includes at leastone frame for the at least one data type.